/**
 *
 */
package com.ai.service.cms.info;

import com.ai.common.model.Pagination;
import com.ai.common.model.Result;
import com.ai.model.edu.cms.info.InfoDetail;
import com.ai.model.edu.cms.info.dto.InfoDetailDTO;
import com.ai.model.edu.cms.info.vo.InfoDetailVO;

import java.util.List;

/**
 * Class Name		: InfoDetailService<br>
 * <p/>
 * Description		: 这里记述class说明<br>
 *
 * @author
 * @version $Revision$
 * @see
 */
public interface InfoDetailService {

    /**
     * Description	： 新增<br>
     *
     * @param record
     * @return
     */
    public Long insertInfoDetail(InfoDetail record);

    /**
     * Description	： 查询<br>
     *
     * @param dto
     * @return
     */
    public List<InfoDetailVO> findInfoDetailByDto(InfoDetailDTO dto);

    /**
     * Description	： 分页查询<br>
     *
     * @param dto
     * @return
     */
    public Pagination<InfoDetailVO> findInfoDetailPageByDto(InfoDetailDTO dto, boolean needCount);

    /**
     * 根据主键查询记录
     */
    public InfoDetailVO selectInfoDetailById(Long id);

    /**
     * Description  ： 复制
     *
     * @param id
     * @return
     */
    Result deleteArticle(Long id, Long operator);

    public abstract List<InfoDetailVO> betchFindInfoDetailByIds(List<Long> idList);

    public abstract List<InfoDetailVO> findInfoDetailByIds(List<Long> idList);

    public InfoDetailVO findInfoDetailById(Long id);

    /**
     * 更新资讯记录
     */
    public Long updateInfoDetail(InfoDetail record);
    
    public Pagination<InfoDetailVO> findInfoDetailPageHyByDto(InfoDetailDTO dto,
			boolean needCount);
}
